package com.wealth.scsj.b_app.view.activity.payment;

import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.wealth.scsj.b_app.R;
import com.wealth.scsj.b_app.utils.SkipUtils;
import com.wealth.scsj.b_app.view.activity.BaseActivity;


/**
 * 支付设置
 */
public class PaymentSettingsActivity extends BaseActivity implements View.OnClickListener {


    private RelativeLayout mChangePaymentPassword;
    private RelativeLayout mRetrievePaymentPassword;
    private TextView mToolbarTitle;
    private Toolbar mToolbar;

    @Override
    protected void createView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_payment_settings);
        initToolbar();
        setToolbarTitle("支付设置");
        hasBack(true);
    }

    @Override
    protected void initView() {

        mChangePaymentPassword = (RelativeLayout) findViewById(R.id.change_payment_password);
        mChangePaymentPassword.setOnClickListener(this);
        mRetrievePaymentPassword = (RelativeLayout) findViewById(R.id.retrieve_payment_password);
        mRetrievePaymentPassword.setOnClickListener(this);
        mToolbarTitle = (TextView) findViewById(R.id.toolbar_title);
        mToolbar = (Toolbar) findViewById(R.id.toolbar);
    }

    @Override
    protected void initListener() {

    }

    @Override
    protected void initData() {

    }


    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            default:
                break;
            case R.id.change_payment_password:
                SkipUtils.toChangePaymentPwd(this);
                break;
            case R.id.retrieve_payment_password:
                SkipUtils.toRetrievePaymentPwd(this);
                break;
        }
    }


}
